.class public Lcom/example/m6wmr/AddrActivity;
.super Landroid/app/Activity;
.source "AddrActivity.java"


# instance fields
.field addr:Ljava/lang/String;

.field private bt:Landroid/widget/Button;

.field flag:Ljava/lang/String;

.field flag2:Ljava/lang/String;

.field lat:Ljava/lang/String;

.field lng:Ljava/lang/String;

.field m:Lmyapp/MyApp;

.field private street:Landroid/widget/EditText;

.field private tv:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 20
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 25
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/example/m6wmr/AddrActivity;->m:Lmyapp/MyApp;

    .line 20
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/AddrActivity;)Landroid/widget/EditText;
    .locals 1

    .prologue
    .line 22
    iget-object v0, p0, Lcom/example/m6wmr/AddrActivity;->street:Landroid/widget/EditText;

    return-object v0
.end method

.method private init()V
    .locals 1

    .prologue
    .line 100
    const v0, 0x7f0c016d

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/AddrActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/AddrActivity;->tv:Landroid/widget/TextView;

    .line 101
    const v0, 0x7f0c016e

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/AddrActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/example/m6wmr/AddrActivity;->street:Landroid/widget/EditText;

    .line 102
    const v0, 0x7f0c016f

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/AddrActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/example/m6wmr/AddrActivity;->bt:Landroid/widget/Button;

    .line 104
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 29
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 30
    const v3, 0x7f030040

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/AddrActivity;->setContentView(I)V

    .line 31
    invoke-direct {p0}, Lcom/example/m6wmr/AddrActivity;->init()V

    .line 32
    invoke-virtual {p0}, Lcom/example/m6wmr/AddrActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    check-cast v3, Lmyapp/MyApp;

    iput-object v3, p0, Lcom/example/m6wmr/AddrActivity;->m:Lmyapp/MyApp;

    .line 33
    invoke-virtual {p0}, Lcom/example/m6wmr/AddrActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 34
    .local v1, "intent":Landroid/content/Intent;
    const-string v3, "flag"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/AddrActivity;->flag:Ljava/lang/String;

    .line 35
    const-string v3, "flag2"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/AddrActivity;->flag2:Ljava/lang/String;

    .line 36
    const-string v3, "name"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/AddrActivity;->addr:Ljava/lang/String;

    .line 37
    const-string v3, "lat"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/AddrActivity;->lat:Ljava/lang/String;

    .line 38
    const-string v3, "lng"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/AddrActivity;->lng:Ljava/lang/String;

    .line 40
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity;->tv:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/example/m6wmr/AddrActivity;->addr:Ljava/lang/String;

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 42
    const/high16 v3, 0x7f0c0000

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/AddrActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 43
    .local v2, "top":Landroid/widget/LinearLayout;
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 44
    const v3, 0x7f070026

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 49
    :cond_0
    const v3, 0x7f0c0001

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/AddrActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 50
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v3, Lcom/example/m6wmr/AddrActivity$1;

    invoke-direct {v3, p0}, Lcom/example/m6wmr/AddrActivity$1;-><init>(Lcom/example/m6wmr/AddrActivity;)V

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 57
    iget-object v3, p0, Lcom/example/m6wmr/AddrActivity;->bt:Landroid/widget/Button;

    new-instance v4, Lcom/example/m6wmr/AddrActivity$2;

    invoke-direct {v4, p0}, Lcom/example/m6wmr/AddrActivity$2;-><init>(Lcom/example/m6wmr/AddrActivity;)V

    invoke-virtual {v3, v4}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 95
    return-void
.end method
